<include file="Admin:header" />

<script src="__PUBLIC__/js/common.js" type="text/javascript"></script>
 <script type="text/javascript">
  function clear_del()
  {
   if(confirm("确定要删除数据吗？"))
   {
	subform('__URL__/delall');
   }
  }
 </script>

<table width="100%" height="31px" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
	  <if condition="$ifid==not">
		<td height="31"><div class="titlebt">查询结果</div></td>
	 <else />
        <td height="31"><div class="titlebt">营销广告</div></td>
	 </if>
      </tr>
    </table>

<div class="main">

    <div class="operate">
        <div class="left">
            <input type="button" onclick="window.open('__URL__/add/nav/<{$nav}>','main')" target="main" class="btn_blue" value="添加">
			<input type="button" onclick="window.open('__URL__/addsort','main')" target="main" class="btn_blue" value="添加分类">
			<input type="button" onclick="window.open('__URL__/adnav','main')" target="main" class="btn_blue" value="分类管理">
			<input class="btn_blue" type="button" onClick="return clear_del();" value="删除" />
			<input type="button" onclick="javascript:document.form_do.submit();"  class="btn_blue" value="更新排序">      
        </div>
        <if condition='ACTION_NAME eq "index"'>
        <div class="left_pad">
            <form method="post" action="__URL__/search">
                <input type="text" name="advert_name" title="关键字" class="inp_default" value="<{$keyword}>">
                <input type="submit" class="btn_blue" value="查  询">
            </form>
        </div>
        </if>
    </div>
    <div class="list">    
    <form action="__URL__/sortcate/nav/<{$nav}>" method="post" id="form_do" name="form_do">
        <table width="100%">
            <tr>
                <th><input  name="chkall" type="checkbox" id="chkall" onclick="selectall(this.form)"></th>
                <th>编号</th>
				<th>所属分类</th>
                <th>附件名称</th>
				
				<th>附件预览</th>
                <th>附件大小</th>            
				<th>上传时间</th>
				<th>排序</th>
                <th>显示状态</th>
                <th>操作</th>
            </tr>
			<empty name="vlist">
			<tr>
			<td colspan="10"><div align="center">本区域暂无数据显示...</div></td>
			</tr>
			<else /> 
			<volist name='vlist' id='v'>
            <tr style="height:95px;">
                <td><input type="checkbox" name="id[]" value="<{$v.id}>" ></td>
                <td><{$v.id}></td>
				<td><{$v.adnav_name}>[id=<{$v.advert_nav}>]</td>
                <td><{$v.advert_name}></td>
				<td><a href="__UPLOAD__/<{$v.advert_image}>" target="_blank"><img src="__UPLOAD__/<{$v.advert_image}>" width="150px" height="50px" border="0" /></a></td>
                <td><{$v.advert_size}></td>               
				 <td><{$v.advert_time|date='Y-m-d H:i:s',###}></td>
				 <td><input type="text" name="<{$v.id}>" value="<{$v.advert_sort}>" /></td>
                <td>
				<if condition="$v['advert_show']==1">
				<span style="color:#FF0000">隐藏</span>
				<else />
				显示
				</if>
				</td>
                <td>
                    <a href="__URL__/edit/id/<{$v.id}>">修改</a>
                    <a href="__URL__/del/id/<{$v.id}>" onclick="return confirm('是否确定删除?')">删除</a>
				</td>
            </tr>
            </volist>
			</empty>
        </table>
    </form>
<div class="green-black"><{$page}>总共<{$count}>条记录</div>
    </div>
</div>
<include file="Pubilc:copyright" />
</body>
</html>
